package com.puff.mapper;

import com.puff.dto.PaymentDTO;
import com.puff.entity.Payment;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface PaymentMapper {

    /**
     * 插入支付数据
     * @param payment
     */
    @Insert("insert into payment (order_id, user_id, payment_time, pay_method, amount) values (#{orderId},#{userId},#{paymentTime},#{payMethod},#{amount})")
    void pay(Payment payment);
}
